dhcp:
  pkg.installed:
    - name: dhcp
  file.managed:
    - name: /etc/dhcp/dhcpd.conf
    - source: salt://dhcp/files/etc/dhcp/dhcpd.conf
    - template: jinja
    - require: 
      - pkg: dhcp
  service.running:
    - name: dhcpd
    - enable: True
    - watch:
      - pkg: dhcp
      - file: /etc/dhcp/dhcpd.conf
